<?php

use yii\db\Migration;

/**
 * Handles the creation of table `{{%contractor}}`.
 */
class m220126_064728_create_contractor_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->createTable('{{%contractor}}', [
            'id' => $this->primaryKey(),
            'inn' => $this->string(),
            'kpp' => $this->string(),
            'ogrn' => $this->string(),
            'name' => $this->string(),
            'name_full_opf' => $this->string(),
            'name_short_opf' => $this->string(),
            'fio_ip' => $this->string(),
            'okpo' => $this->string(),
            'management' => $this->string(),
            'address' => $this->string(),
            'email' => $this->string(),
            'phone' => $this->string(),
        ]);
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropTable('{{%contractor}}');
    }
}
